package com.qf;

import com.qf.factory.BeanFactory2;
import com.qf.xml.service.UserService;

public class MainApp {

    public static void main(String[] args) throws Exception {
//        UserDao userDao = (UserDao) BeanFactory.getBean("userDao");
//
//        userDao.findAll();
////        userDao.findById(2);
////        userDao.insert("zs","123",18);

        UserService userService = (UserService) BeanFactory2.getBean("userService");

        userService.findAll();
        userService.findById(2);
        userService.insert("ls",20);
    }
}
